package de.ff7rl.core;

public class TerminalMenuItem {

  private final Object value;
  private final boolean isEnabled;

  public TerminalMenuItem(final Object theValue) {
    this(theValue, true);
  }

  public TerminalMenuItem(final Object theValue, final boolean theIsEnabled) {
    value = theValue;
    isEnabled = theIsEnabled;
  }

  public Object getValue() {
    return value;
  }

  public boolean isEnabled() {
    return isEnabled;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public String toString() {
    return getValue().toString();
  }

}
